import 'package:flutter/material.dart';
import 'package:hkzf/pages/home/info/index.dart';
import 'package:hkzf/widgets/seach_bar/index.dart';

class TabInfo extends StatelessWidget {
  const TabInfo({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: SearchBar(
          onSearch: () {
            Navigator.pushNamed(context, '/search');
          },
        ),
        backgroundColor: Colors.white,
      ),
      body: ListView(
        children: [
          Padding(
            padding: EdgeInsets.all(10),
          ),
          Info(),
          Info(),
          Info(),
          Info(),
        ],
      ),
    );
  }
}
